import qs from 'qs'

const globalMethods = {
    methods:{
        HANDLE_SORRY(){
            uni.showToast({
				icon: "none",
				title: "该功能敬请期待~"
			})
        },
        // 跳转商品分类
        HANDLE_JUMP_CATE(params={}){
			this.$store.dispatch('CLASSIFY_PAGES_PARAMS', params)
			uni.switchTab({
				url: `/pages/classify/classify`
			})
        },
        // 跳转非tab页面
        HANDLE_JUMP_PAGES(path){
            uni.navigateTo({
				url: path
			})
        },
		// 跳转到首页
		HANDLE_JUMP_HOME() {
			uni.switchTab({
				url: `/pages/mall/mall`
			})
		}
    }
}

export { globalMethods }